﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ActiveLock3_6NET;

namespace ActiveLockExample
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            _IActiveLock ActiveLock;
            ActiveLockEventNotifier ActiveLockEventSink;


            ActiveLock = new IActiveLock();
            ActiveLock.KeyStoreType = IActiveLock.LicStoreType.alsFile;
            ActiveLock.KeyStorePath = Application.StartupPath + "\\myapp.lic";
            ActiveLockEventSink = ActiveLock.EventNotifier;

            ActiveLock.SoftwareName = "HakkaiApp";
            ActiveLock.SoftwareCode = "29021988";
            ActiveLock.SoftwareVersion = "1.0";
            ActiveLock.LockType = IActiveLock.ALLockTypes.lockHD;
           
        }
    }
}
